package main;

import java.util.List;
import java.util.ArrayList;

import DBClasses.Game;

public class Basket
{
	public Item Contains(Game game)
	{
		for (Item item : UserBasket)
		{
			if(item.getGame().getId().equals(game.getId()))
				return item;
		}
		return null;
	}
	
	public List<Item> UserBasket;

	public Basket()
	{
		UserBasket = new ArrayList<Item>();
	}
}
